package com.zbkj.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 门店、仓库调货单
 * </p>
 *
 * @author keNan
 * @since 2025-06-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_transfer_order")
@ApiModel(value = "TransferOrder对象", description = "门店、仓库调货单")
public class TransferOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "单据编号")
    private String receiptNumber;

    @ApiModelProperty(value = "单据时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date receiptTime;

    @ApiModelProperty(value = "转出类型(1仓库  2门店)")
    private Integer transferOutType;

    @ApiModelProperty(value = "转出门店id")
    private Integer transferOutStoreId;

    @ApiModelProperty(value = "转出门店")
    private String transferOutStore;

    @ApiModelProperty(value = "转入类型(1仓库  2门店)")
    private Integer transferInType;

    @ApiModelProperty(value = "转入门店id")
    private Integer transferInStoreId;

    @ApiModelProperty(value = "转入门店")
    private String transferInStore;

    @ApiModelProperty(value = "总数量")
    private Integer totalNumber;

    @ApiModelProperty(value = "制单人")
    private String documentPreparer;

    @ApiModelProperty(value = "审核状态(0草稿 1待审核  2审核通过 3未通过)")
    private Integer auditStatus;

    @ApiModelProperty(value = "操作人")
    private String operator;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "调货规格的json字符串数据,审核通过后再添加到eb_room_product表")
    private String transferOrderSkuListJsonStr;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


}
